﻿using System.Configuration;

namespace FrontDisplay.Music
{
    public sealed class Configuration : ApplicationSettingsBase
    {
        [UserScopedSetting]
        [DefaultSettingValue("false")]
        public bool IsAutoShowOnPlaying
        {
            get
            {
                return (bool)this["IsAutoShowOnPlaying"];
            }
            set
            {
                this["IsAutoShowOnPlaying"] = value;
            }
        }

        [UserScopedSetting]
        [DefaultSettingValue("true")]
        public bool IsCloseOnIdle
        {
            get
            {
                return (bool)this["IsCloseOnIdle"];
            }
            set
            {
                this["IsCloseOnIdle"] = value;
            }
        }

        [UserScopedSetting]
        [DefaultSettingValue("15")]
        public int IdleTimeout
        {
            get
            {
                return (int)this["IdleTimeout"];
            }
            set
            {
                this["IdleTimeout"] = value;
            }
        }
    }
}
